package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.TbMatter;
import com.bwie.service.TbMatterService;
import com.bwie.mapper.TbMatterMapper;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Lenovo
* @description 针对表【tb_matter】的数据库操作Service实现
* @createDate 2025-04-24 08:49:00
*/
@Service
public class TbMatterServiceImpl extends ServiceImpl<TbMatterMapper, TbMatter>
    implements TbMatterService{
    @Autowired
    TbMatterMapper matterMapper;
    @Override
    public R getMatterList(PageInfoVo pageInfoVo) {
        Page<TbMatter> matterPage = new Page<>(pageInfoVo.getPageNum(), pageInfoVo.getPageSize());

        Page<TbMatter> tbMatterPage = matterMapper.selectPage(matterPage, null);
        return R.OK(tbMatterPage);
    }
}




